home *** CD-ROM | disk | FTP | other *** search
- property s, mypercent, mywidth, myheight
- global tickrate, stagedone
-
- on beginSprite me
- s = me.spriteNum
- mypercent = 0
- mywidth = the width of sprite s
- myheight = the height of sprite s
- end
-
- on prepareFrame me
- set the width of sprite s to float(mywidth) / 100 * (100 - mypercent)
- set the height of sprite s to float(myheight) / 100 * (100 - mypercent)
- mypercent = min(100, mypercent + tickrate)
- end
-
- on donestage me
- if mypercent < 100 then
- stagedone = 0
- end if
- end
-